package java8Up.双冒号;

import java.util.Arrays;
import java.util.List;

/**
 * @author Fang Ruichuan
 * @date 2022-10-05 10:47
 */

public class ClassInitializeDemo {
    public static void main(String[] args) {
        List<String> list = Arrays.asList("aaa", "bbb", "ccc");
        list.forEach(new ClassInitializeDemo()::print);
    }

    public void print(String content) {
        System.out.println(content);
    }
}
